package org.l.qiao;

import java.lang.annotation.*;

/**
 * Created by 严秋旺 on 2014/12/19.
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
@Inherited
public @interface Key {

    KeyType keyType();

    String format() default "yyyy-MM-dd HH:mm:ss";

    int valueType();

    /**
     * 字符串验证的正则表达式
     *
     * @return
     */
    String check();

    boolean nullable() default false;

}
